package cn.com.dhcc.aml.redisssl.config;

import io.lettuce.core.ClientOptions;
import io.lettuce.core.SslOptions;
import org.springframework.boot.autoconfigure.data.redis.LettuceClientConfigurationBuilderCustomizer;
import org.springframework.boot.autoconfigure.data.redis.RedisProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.RedisStandaloneConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;

/**
 * @author songyinyin
 * @since 2024/6/26 下午4:07
 */
//@Configuration
public class RedisAutoConfiguration {

//    @Bean
//    public LettuceClientConfigurationBuilderCustomizer lettuceClientConfigurationBuilderCustomizer() {
//        return clientConfigurationBuilder -> clientConfigurationBuilder.clientOptions(ClientOptions.builder()
//                .sslOptions(SslOptions.builder().jdkSslProvider().truststore().build()).build());
//    }

}
